package com.wx.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.wx.entity.WxFansUser;
import com.wx.entity.WxFansUserExample;

public interface WxFansUserService {
	public int countByExample(WxFansUserExample example);

	public int deleteByExample(WxFansUserExample example);

	public int deleteByPrimaryKey(Integer id);

	public int insert(WxFansUser record);

	public int insertSelective(WxFansUser record);

	public List<WxFansUser> selectByExample(WxFansUserExample example);
	
	public List<WxFansUser> selectByWxid(String wxid);

	public WxFansUser selectByPrimaryKey(Integer id);
	
	public WxFansUser selectByOpenId(String openid);
	
	
	public List<WxFansUser> selectByNickName(String nickname);

	public int updateByExampleSelective(@Param("record") WxFansUser record, @Param("example") WxFansUserExample example);

	public int updateByExample(@Param("record") WxFansUser record, @Param("example") WxFansUserExample example);

	public int updateByPrimaryKeySelective(WxFansUser record);

	public int updateByPrimaryKey(WxFansUser record);
	
	public List<WxFansUser> selectEntityByExample(Map<String, Object> params);	
	
	public int countEntityByExample(Map<String, Object> params);
	
	public List<String> selectAllOpenid(WxFansUserExample example);

	public WxFansUser selectByWxidAndOpenid(String wxId, String openid);
	
	public List<WxFansUser> selectByWxidAndOpenid(String wxId, String... openid);

	public WxFansUser selectByWxUserId(Long wxUserId);

	public List<WxFansUser> queryFansByTag(Map<String, Object> paramMap);
}
